From c89d2061b38aa69f3aaafeb594d598c07b14721b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Thu, 12 Feb 2026 14:48:36 +0100 Subject: [PATCH] layout: Catch async errors It is good practice to avoid "unhandled promise rejection" errors, even when a function is not expected to reject. Part-of: --- js/ui/layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/layout.js b/js/ui/layout.js index 7b8af4726..8f07ac63e 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -610,7 +610,7 @@ export const LayoutManager = GObject.registerClass({ this._updateMonitors(); this._updateBoxes(); this._updateHotCorners(); - this._updateBackgrounds(); + this._updateBackgrounds().catch(logError); this._updateFullscreen(); this._updateVisibility(); this._queueUpdateRegions(); -- 2.39.5